<?
$product = __template_get("product");
$size = __sysparam("thumbs","size");
?>
<div class="product span-3">
	<p class="title">
	<?= Html::link("catalog","show","product",$product->product_id,
				Html::db($product->name)) ?>
	</p>
	<?= Html::link("catalog","show","product",$product->product_id,"",
			 array('description'=>Html::db(String::extract($product->description,130)."..."),
			 		'image'=>__imageSizer("webapp/public/media/".$product->image,"mini"))) ?>

	<p class="price left"><?= Html::currency($product->price) ?></p>
	<p class="availability left">
			<?= ($product->availability_date<=__sysparam('system','today')?"available":"(<acronym title=\"Delayed until ".Html::dateFromDB($product->availability_date)."\">Delayed</acronym>)") ?>
	</p>
	<?= HtmlHelpers::ajaxAddButton("cart","add","product",$product->product_id,
				__s('cart','addButton_title',$product->name),
				array('ajaxTarget'=>"cartlist",
					  'styleclass'=>"fright")) ?>

</div>
